From bc05036624e0e7f0cf362b82f4cbb5cf5ab8eb6b Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 31 Aug 2009 10:14:26 +0100 Subject: [PATCH] libxc: Avoid a constant-zero-sized memset(). Some environments warn about this, which fails the build. Signed-off-by: Keir Fraser --- tools/libxc/xc_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c index 8121a08bf0..0c226ac7b2 100644 --- a/tools/libxc/xc_core.c +++ b/tools/libxc/xc_core.c @@ -321,7 +321,8 @@ elfnote_dump_none(void *args, dumpcore_rtn_t dump_rtn) struct xen_dumpcore_elfnote_none_desc none; elfnote_init(&elfnote); - memset(&none, 0, sizeof(none)); + /* Avoid compile warning about constant-zero-sized memset(). */ + /*memset(&none, 0, sizeof(none));*/ elfnote.descsz = sizeof(none); elfnote.type = XEN_ELFNOTE_DUMPCORE_NONE; -- 2.30.2